.class public Lcom/kwad/sdk/core/g/c$a;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/kwad/sdk/core/g/c;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "a"
.end annotation


# instance fields
.field final synthetic a:Lcom/kwad/sdk/core/g/c;

.field private final b:Lcom/kwad/sdk/core/g/i;

.field private final c:Landroid/content/Context;


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/g/c;Landroid/content/Context;Lcom/kwad/sdk/core/g/i;)V
    .locals 0

    iput-object p1, p0, Lcom/kwad/sdk/core/g/c$a;->a:Lcom/kwad/sdk/core/g/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p2, p0, Lcom/kwad/sdk/core/g/c$a;->c:Landroid/content/Context;

    iput-object p3, p0, Lcom/kwad/sdk/core/g/c$a;->b:Lcom/kwad/sdk/core/g/i;

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 4
    .param p1    # Ljava/util/List;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "TT;>;)V"
        }
    .end annotation

    const/16 v0, 0xc8

    invoke-static {p1, v0}, Lcom/kwad/sdk/c/f;->a(Ljava/util/List;I)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_0

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    iget-object v3, p0, Lcom/kwad/sdk/core/g/c$a;->a:Lcom/kwad/sdk/core/g/c;

    invoke-virtual {v3, v2}, Lcom/kwad/sdk/core/g/c;->a(Ljava/util/List;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    iget-object v0, p0, Lcom/kwad/sdk/core/g/c$a;->a:Lcom/kwad/sdk/core/g/c;

    invoke-static {v0}, Lcom/kwad/sdk/core/g/c;->e(Lcom/kwad/sdk/core/g/c;)Ljava/util/concurrent/atomic/AtomicInteger;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I

    move-result v0

    if-gtz v0, :cond_0

    iget-object v0, p0, Lcom/kwad/sdk/core/g/c$a;->c:Landroid/content/Context;

    invoke-static {v0}, Lcom/ksad/download/d/b;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/kwad/sdk/core/g/c$a;->b:Lcom/kwad/sdk/core/g/i;

    invoke-interface {v0}, Lcom/kwad/sdk/core/g/i;->b()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    invoke-direct {p0, v0}, Lcom/kwad/sdk/core/g/c$a;->a(Ljava/util/List;)V

    :cond_0
    return-void
.end method
